package main

import (
	"regexp"
)

const (
	EventRulePattern = `^[A-Za-z0-9\u4e00-\u9fa5 %&*()_\-+={}\[\\\]<>\\':;",./]{2,40}$`
)

func main1() {
	pattern := `^[A-Za-z0-9\p{Han} %&*()_\-+={}\[\]<>\\':;",./]{2,40}$`
	eventRuleNameRegexp := regexp.MustCompile(pattern)
	ifMatch := eventRuleNameRegexp.MatchString("导入事件规则测试011111 %&*()_-+={}[]<>\\':;\",./")
	print(ifMatch)
}
